﻿/* ===== Общие стили ===== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", Helvetica, Arial, sans-serif;
  background-color: #fff;
}

img {
  width: auto;
  max-width: 100%;
  display: block;
}

.image {
  width: 346px;
}

h1, h2, h3, p {
  margin: 0;
}


/* ===== Основной контейнер ===== */
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  gap: 40px;
  padding-top: 25px;
}

/* ===== HEADER ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 80px;
  background-color: #fff;
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
  height: auto;
}

.header__left-group {
    display: flex;
    align-items: center;
    gap: 16px; /* Регулируйте это значение для контроля расстояния */
}

.header__logo {
  height: auto;
}

.header__title {
  font-size: 20px;
  font-weight: 500;
  color: #000;
}
/* ===== Форма авторизации ===== */
.form-log-in {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 480px;
  background-color: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* ===== Группа ввода ===== */
.input-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Подпись к полю */
.label {
  font-size: 16px;
  color: #1e1e1e;
  font-weight: 400;
}

/* Поле ввода */
.input {
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 16px;
  color: #1e1e1e;
  background-color: #fff;
  box-sizing: border-box;
}

.input::placeholder {
  color: #b3b3b3;
}

/* Состояние фокуса */
.input:focus {
  outline: 2px solid #4a90e2;
  border-color: #4a90e2;
}

/* ===== Кнопка входа ===== */
.button-group {
  display: flex;
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav__link {
  font-size: 20px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.nav__link--active {
  color: #4c7de7;
}

.nav__logout-btn {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 16px;
  cursor: pointer;
}

.nav__logout-btn:hover {
  background-color: #222;
}
/* ===== PAGE LAYOUT ===== */
.page-layout-row {
    margin: 0 auto;
    padding: 10px 40px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1440px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 1440px;
    margin-top: 20px;
}

.page-layout-column .NameGroup {
    color: #667080;
    font-weight: bold;
    align-self: anchor-center;
    font-size: x-large;
}
.StatusVisitedMissing-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  background-color: #ea9895;
  border-color: transparent;
  color: #95231e;
}
.StatusVisitedAttended-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  background-color: #9ce3de;
  border-color: transparent;
  color: #278b84;
}
.StatusVisitedExpectation-btn {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  background-color: #e3ecff;
  border-color: transparent;
  color: #13398d;
}
.IncreaseBalance-btn {
    margin: 5px;
    font-size: 20px;
    border-radius: 5px;
    background-color: #4c7de7;
    border-color: transparent;
    color: #ffffff;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  background-color: #2c2c2c;
  color: #fff;
  font-size: 16px;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.button:hover {
  background-color: #1e1e1e;
}

.button:active {
  transform: scale(0.98);
}

.text-wrapper {
  color: #f5f5f5;
  font-weight: 400;
}

/* ===== Ссылка "Забыли пароль?" ===== */
.text-link {
  text-align: center;
}

.link-forgot {
  color: #1e1e1e;
  text-decoration: underline;
  font-size: 16px;
}

.link-forgot:hover {
  opacity: 0.8;
}

.link-forgot:focus {
  outline: 2px solid #4a90e2;
  outline-offset: 2px;
  border-radius: 2px;
}



/* ===== SIDEBAR ===== */
.client-info {
  width: 400px;
  min-width: 360px;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0px 14px 42px 0px rgba(8, 15, 52, 0.06);
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.client-info__name {
  font-size: 24px;
  font-weight: 600;
  color: #4c7de7;
  text-align: center;
  margin-bottom: 40px;
}

.client-info__section-title_second {
  font-size: 24px;
  color: #525a67;
  text-align: center;
  margin-bottom: 20px;
}

.client-info__section-title_primary {
  font-size: 24px;
  font-weight: 600;
  color: #4c7de7;
  text-align: center;
  margin-bottom: 20px;
}

.client-info__item {
  text-align: center;
  font-weight: bolder;
  margin-bottom: 28px;
  position: relative;
}

.client-info__label {
  color: #667080;
  font-size: 16px;
  margin-bottom: 15px;
}

.client-info__value {
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.client-info__item::after {
  content: "";
  display: block;
  width: 60%;
  height: 1px;
  background-color: #4c7de7;
  margin: 8px auto 0;
}

.client-info__balance {
  margin-top: 40px;
  text-align: center;
}

.client-info__value--balance {
  margin: 20px;
  font-size: 32px;
  color: #000;
  font-weight: 600;
  margin-top: 8px;
}
.pay-btn
{
    padding: 10px 40px;
    font-size: x-large;
    font-weight: 700;
    border-radius: 20px;
    background-color: #4c7de7;
    border-color: transparent;
    color: #ffffff;
    text-transform: uppercase; /* Добавляет верхний регистр */
    letter-spacing: 0.5px; /* Небольшое увеличение расстояния между буквами */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для объема */
    cursor: pointer;
    transition: all 0.2s ease; /* Плавные переходы */
}

.pay-btn:hover {
    background-color: #3a6bd8;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* ===== TABLE ===== */
.lessons-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0px 4px 4px -2px rgba(102, 112, 128, 0.16);
    overflow: hidden;
}


.table-container {
    width: 100%;
    overflow-x: auto; /* горизонтальная прокрутка */
}

.lessons-table th {
  background-color: #4c7de7;
  color: #fff;
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid #919aa9;
  white-space: nowrap;
}

.lessons-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #919aa9;
  color: #667080;
  white-space: nowrap;
}

    .lessons-table th:nth-child(2),
    .lessons-table td:nth-child(2) {
        width: 200px;
    }

/* Фиксированные ширины для страницы /classes */
.lessons-table.classes-table th:nth-child(1),
.lessons-table.classes-table td:nth-child(1) {
    width: 25%;
    min-width: 150px;
}

.lessons-table.classes-table th:nth-child(2),
.lessons-table.classes-table td:nth-child(2) {
    width: 20%;
    min-width: 180px;
}

.lessons-table.classes-table th:nth-child(3),
.lessons-table.classes-table td:nth-child(3) {
    width: 25%;
    min-width: 150px;
}

.lessons-table.classes-table th:nth-child(4),
.lessons-table.classes-table td:nth-child(4) {
    width: 15%;
    min-width: 120px;
    text-align: center;
}

.lessons-table.classes-table th:nth-child(5),
.lessons-table.classes-table td:nth-child(5) {
    width: 15%;
    min-width: 100px;
}

.lessons-table tr:hover td {
  background-color: #f3f4ff75;
}

.lessons-table .balance-column {
  padding-right: 2px;
  text-align: right;
}

/* Balance color indicators */
.lessons-table .balance-column .balance-amount.balance-low {
  color: #d32f2f !important;  
}

.lessons-table .balance-column .balance-amount.balance-warning {
  color: #f57c00 !important;  
}

.lessons-table .balance-column .balance-amount.balance-success {
  color: #2e7d32 !important;  
}

/* Внутренний бейдж */
.lessons-table td[data-type="TypeLesson"] span {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  background-color: #7386ff;
  color: #fdfdfd;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  line-height: 1.2;
  min-width: 80px;
}

.lessons-table td[data-type="TypeLesson"] {
  text-align: center;
  white-space: nowrap;
}

.child-name-link {
  background: none;
  border: none;
  color: #4c7de7;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  font: inherit;
  text-align: left;
  transition: color 0.2s, text-decoration 0.2s;
}

.child-name-link:hover {
  color: #3a5fc1;
  text-decoration: underline;
}

.child-name-link:active {
  color: #2e4a9e;
}

.sort-btn {
  background: none;
  border: none;
  padding: 0 4px;
  cursor: pointer;
  vertical-align: middle;
}

.sort-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.assets-pagination {
    display: flex;
    justify-content: space-between;
    align-self: stretch;
    width: 100%;
    align-items: center;
    padding: 8px;
    position: relative;
    flex: 0 0 auto;
}
.div-2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 0 0 auto;
}
.icon-button {
    width: 20px;
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    padding: 4px;
    position: relative;
    flex: 0 0 auto;
}
.assets-input {
    display: inline-flex;
    gap: 8px;
    border-radius: 4px;
    border: 2px solid;
    border-color: rgba(145, 154, 169, 1);
    align-items: center;
    padding: 8px;
    position: relative;
    flex: 0 0 auto;
}

.page-layout-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    max-width: 1440px;
    margin: 20px auto;
    padding: 0 40px;
}

@media(max-width: 768px) {
    .header__left-group {
        padding: 0px 0px 15px 0px;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .header {
        display: flow;
        align-items: center;
        justify-content: space-between;
        background-color: rgb(255, 255, 255);
        box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 4px;
        height: auto;
        width: auto;
        padding: 20px;
    }

    .nav__logout-btn {
        background-color: #000;
        color: #fff;
        border: none;
        border-radius: 8px;
        padding: 6px 12px;
        font-size: 16px;
    }

    .nav {
        display: grid;
        gap: 12px;
        flex-wrap: wrap;
    }

    .lessons-table {
        font-size: 12px;
    }

        .lessons-table th,
        .lessons-table td {
            padding: 6px 8px;
        }

            .lessons-table td[data-type="TypeLesson"] span {
                padding: 2px 6px;
                font-size: 11px;
                min-width: 60px;
            }

    .image {
        width: auto;
    }

    .form-log-in {
        width: auto;
    }

    .client-info {
        width: 100%;
        min-width: 0px;
        background-color: #fff;
        border-radius: 20px;
        box-shadow: 0px 14px 42px 0px rgba(8, 15, 52, 0.06);
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
    }

    .page-layout-row {
        margin: 0 auto;
        padding: 5px 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0px;
        width: 100%;
    }

    .client-info__balance {
        margin-top: 0px;
        text-align: center;
    }

    .client-info__name {
        margin-bottom: 20px;
    }
}
